#ifndef __MESSAGE_H__
#define __MESSAGE_H__

#include <stdio.h>
#include <sys/socket.h>
//#include <linux/in.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>          /* See NOTES */
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>



// #define Serdir "./serdir"
// #define Cliedir "./cliedir"

char Serdir[128];//服务器的工作目录
char Cliedir[128];//客户端的工作目录

//命令的枚举类型
enum CMD_NO
{
    FTP_CMD_LS = 1024,
    FTP_CMD_GET,
    FTP_CMD_PUT,
    FTP_CMD_BYE,
    FTP_CMD_CD,
    FTP_CMD_PWD,
    FTP_CMD_UNKNOWN = 0xFFFFFFFF
};

enum CMD_NO get_cmd(char* send_buf,char* pathname);
void hand_cmd(unsigned char* recv_cmd,enum CMD_NO *cmd,int* arg_len,char* arg);



#endif